<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>xfpoly</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 04/10/2005</div>
    <p>
      <b>xfpoly</b> - fill a polygon</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>xfpoly(xv,yv,[close])</tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>xv,yv</b>
        </tt>: two vectors of same size (the points of the polygon).</li>
      <li>
        <tt>
          <b>close</b>
        </tt>: integer. If close=1, the polyline is closed; default value is
          0.</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>xfpoly</b>
      </tt> fills a polygon with the current color. If
    <tt>
        <b>close</b>
      </tt> is equal to 1 a point is added to the polyline
    <tt>
        <b>xv,yv</b>
      </tt> to define a polygon.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

x=sin(2*%pi*(0:4)/5);
y=cos(2*%pi*(0:4)/5);
plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
xset("color",5)
xfpoly(x,y)

// News graphics only
e=gce(); // get the current entity (the last created: here the polyline)
e.fill_mode='off';
e.closed = 'off' // the polyline is now open
  
xset("default")
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="xfpolys.htm">
        <tt>
          <b>xfpolys</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="xpoly.htm">
        <tt>
          <b>xpoly</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="xpolys.htm">
        <tt>
          <b>xpolys</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p>J.Ph.C.</p>
  </body>
</html>
